<nz-table #nzTable
          [nzData]="userList.voList"
          [nzLoading]="_loading"
          [nzFrontPagination]="false"
          [nzShowTotal]="totalRow"
          [nzPageSize]="userList.pageSize"
          [nzTotal]="userList.totalRow"
          [nzPageIndex]="userList.curPage"
          (nzPageIndexChange)="queryUserList($event)">
  <thead nz-thead>
  <ng-template #totalRow>共 {{userList.totalRow}} 条数据</ng-template>
  <tr>
    <th nz-th class="text-center" nzWidth="5%"><span>序号</span></th><!--序号-->
    <th nz-th class="text-center" nzWidth="10%"><span>账户信息</span></th><!--账户信息-->
    <th nz-th class="text-center" nzWidth="15%"><span>星级</span></th><!--星级-->
    <th nz-th class="text-center" nzWidth="10%"><span>是领导人</span></th><!--是否是领导人 Y,N-->
    <th nz-th class="text-center" nzWidth="10%"><span>身份证号</span></th><!--身份证号-->
    <th nz-th class="text-center" nzWidth="10%"><span>昵称</span></th><!--昵称-->
    <th nz-th class="text-center" nzWidth="10%"><span>真实姓名</span></th><!--真实姓名-->
    <!--<th nz-th class="text-center" nzWidth="10%"><span>支付宝账户</span></th>&lt;!&ndash;支付宝账户&ndash;&gt;-->
    <!--<th nz-th class="text-center" nzWidth="10%"><span>微信账户</span></th>&lt;!&ndash;微信账户&ndash;&gt;-->
    <th nz-th class="text-center" nzWidth="10%"><span>创建时间</span></th><!--创建时间-->
  </tr>
  </thead>
  <tbody nz-tbody>
  <ng-template ngFor let-data [ngForOf]="nzTable.data" let-i="index">
    <tr nz-tbody-tr>
      <td nz-td class="text-center">{{i+1}}</td>
      <td nz-td class="text-center">{{data?.user?.account}}</td>
      <td nz-td class="text-center">{{data?.user?.star}}</td>
      <td nz-td class="text-center">
          <span
            [ngClass]="{'color-green':data.leader===userTypes.leader,
            'color-red':data.leader===userTypes.areaManager}">
            {{data?.user?.leader | enumName: userType}}
          </span>
      </td>
      <td nz-td class="text-center">{{data?.user?.idCard || '-'}}</td>
      <!--<td nz-td class="text-center">{{data?.user?.alipay || '-'}}</td>-->
      <!--<td nz-td class="text-center">{{data?.user?.wechat || '-'}}</td>-->
      <td nz-td class="text-center">{{data?.user?.nickName || '-'}}</td>
      <td nz-td class="text-center">{{data?.user?.realName}}</td>
      <td nz-td class="text-center font12">{{data?.user?.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
    </tr>
  </ng-template>
  </tbody>
</nz-table>

